package edu.nf.admin.controller.shop;

import edu.nf.admin.controller.BaseController;
import edu.nf.waimai.service.shop.ShopTypeService;
import edu.nf.waimai.service.shop.impl.ShopTypeServiceImpl;
import org.nf.web.annotation.RequestMapping;
import org.nf.web.annotation.RequestParam;
import org.nf.web.servlet.View;
import org.nf.web.servlet.view.JsonView;

public class ShopTypeController extends BaseController {
    private ShopTypeService service = new ShopTypeServiceImpl();

    /**
     * 删除商家类型
     * @param shopTypeId
     * @return
     */
    @RequestMapping("/edu/nf/admin/controller/admin/shopType/delShopType")
    public View delShopType(@RequestParam("shopTypeId") int shopTypeId){
        return new JsonView(success(service.delShopType(shopTypeId)));
    }
}
